﻿using System.Windows.Input;
using YKXiangQi.Common;
using YKXiangQi.Models;

namespace YKXiangQi.ViewModels
{
    public class TimerSettingsViewModel: DialogViewModel
    {
        public ICommand SaveCommand { get; private set; }
        public ICommand CancelCommand { get; private set; }

        public TimerSettings Settings { get; set; }

        public TimerSettingsViewModel()
        {
            SaveCommand = new RelayCommand(OnSave);
            CancelCommand = new RelayCommand(OnCancel);
        }

        private void OnSave(object param)
        {
            OnRequestClose(true);
        }

        private void OnCancel(object param)
        {
            OnRequestClose(false);
        }
    }
}
